package com.demo.javawebdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EntityScan(basePackages = {"com.blog.model"})
@EnableJpaRepositories(basePackages = {"com.blog.repository"})
@ComponentScan(basePackages = {"com.blog", "com.demo.javawebdemo"})
public class JavaWebdemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(JavaWebdemoApplication.class, args);
    }

}
